package com.beiyou.dao;


import com.beiyou.model.Tuku;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TukuDao {

    @Insert(" insert a_tuku (name,img) values (#{name},#{img}) ")
    int insert(Tuku tuku);

    @Select(" select id, name,img from a_tuku")
    List<Tuku> select();
}
